/**
 * 睡眠函数
 * @param time
 */
export const sleep = (time = 1000): Promise<string> => {
    return new Promise((resolve) => setTimeout(() => {
        resolve('wakeup');
    }, time));
};